# 代码所有：cxw
# 开发时间：2021/11/11 20:41

def count_name(filenme):
    try:
        with open(filename) as files:
            counts=files.read()
    except FileExistsError:
        print("文件找不到，警告")
    else:
        s=counts.split()
        num_words=len(s)
        print("the ",filenme," have ",num_words)
filename="alin.txt"
count_name(filename)
